Fix bogus initializion in str_utf8_to_ascii
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 11 May 2004 15:46:13 +0000 (15:46 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 11 May 2004 15:46:13 +0000 (15:46 +0000)
gpsbabel/util.c

index 0d3505c9ff878e5e28ff1f38875b96e06a36fa36..25ffad8cac923f366099e59f2e879aa88430de89 100644 (file)
@@ -772,7 +772,7 @@ char * str_utf8_to_ascii( const char * str )
                if ( *cur & 0x80 ) {
                        int bytes;
                        int value;
-                       char *strvalue = "";
+                       char *strvalue = NULL;
                        utf8_to_int( cur, &bytes, &value );
                        switch (value) {
                                case 0x2026: strvalue = "..."; break;